<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>验证密码输入是否一致</title>
</head>
<body>
<form action="." method="post">
    {% csrf_token %}
{#    {{ form.as_p }}#}
{#    用户名#}
    <div>
        {{ form.password.label }}
        {{ form.password }}
        {{ form.password.errors.as_text }}
    </div>
    {#    密码#}
    <div>
        {{ form.pasconfirm.label }}
        {{ form.pasconfirm }}
        {{ form.pasconfirm.errors.as_text }}
    </div>
    <div>
        {{ form.non_field_errors.as_text }}
    </div>


    <input type="submit" value="提交">
</form>
</body>
</html>